import matplotlib.pyplot as plt
import numpy as np

x=np.linspace(-10,10,200)
y=np.sin(2*x)
plt.plot(x,y,label="y=sin2x",color="red")
plt.title("y=sin2x")
plt.xlabel('x')
plt.ylabel('y')
plt.legend()
plt.show()
